package com.bj58.ecdata.calc.dbservice.service;

import com.bj58.spat.scf.server.contract.annotation.OperationContract;

/**
 * @author lichao
 *
 */
public interface BaseService {
	@OperationContract
	String ping();

	/**
	 * 每日累计量（总量）
	 */
	@OperationContract
	String getDailySum();

	/**
	 * 每日累计量(平台，业务线)
	 */
	@OperationContract
	String getDailySum(PlatformEnum platform, BusslineEnum bussline);

	/**
	 * 柱状图数据
	 * 
	 * @param time
	 *            0 返回最近一小时数据(1800 个点)
	 */
	@OperationContract
	String getData(String type, PlatformEnum platform, BusslineEnum bussline, long time);

	/**
	 * 今日分钟数据(0点到现在)
	 */
	@OperationContract
	String getDataTodayMinute(String type, long time);
	
	/**
	 * 柱状图数据 今日小时数据(0点到现在)
	 */
	@OperationContract
	String getDataTodayHourly(String type, PlatformEnum platform, BusslineEnum bussline);

	/**
	 * 柱状图数据 昨日小时数据(24小时)
	 */
	@OperationContract
	String getDataYesterdayHourly(String type, PlatformEnum platform, BusslineEnum bussline);

}
